package myultility;

public class Convert {
	public static String toPermission(String str){
		System.out.println("Chuyen "+str);
		if(str.equals("---"))return "No permission";
		StringBuffer sb=new StringBuffer();
		if(str.charAt(0)=='r')sb.append("Read ");
		if(str.charAt(1)=='w')sb.append("Write ");
		if(str.charAt(2)=='x')sb.append("Execute");
		return sb.toString();
	}
}
